Completed editing functions, and all html buttons working