clear up code for all page