converted to php and respnsive view