Device settings

Added orientation and multiple device support