adapting for mobile view