adjusted design of uipopovercontroller