finally made it smartphone friendly.. some js hackery