Created directive to vertically center panel