Add code for view membership type