added mobile functionality