Swapped endCal and addPoint... again
Removed unused styles. Fixed style bug
Removed stupid code when hiding/showing the popup