fixed ui to fit inside popup