correcting template and buttons effects