Optimize positions and reset buttons