Implementing responsive UI, minor template bugfix