Finished window resize and dynamic buttons