added functionality for rendering different looks depending on if user i
s mobile