Removed unused argument from createClearButton function