refactoring of code and ui; styling of calculator