Added mobile functionality and fixed a couple bugs