fixed orientation issues, added input types