Removed old component edit handling function
Cleaned up the views code for component management