Adds install plugin functionality to UI
Removed unreachable code
Tests for install plugin added