edit pages added

1. added edit pages
2. changed input type of images
3. added required feature to all primary keys
4. view links added (script needed to written)