fixed some minor bugs and mobile issues