added button function for cleaner