Creating the pop up view programatically to avoid resetting animations and views location