Fixing CSS bugs when the player fram resizing
Abstracted the code for checking whether the remote database is empty.