Connected all the views, added more api functionality (like creating of an image)