Fixed some bugs and made the app scale its size according to screen size