How to use cleanup function?

How can I prevent buttons from one screen to appear on a different screen? [import]uid: 30766 topic_id: 13483 reply_id: 313483[/import]