added urls, view and template for homepage and an add new pattern page