added queries for type and fixed some mobile alignment issues.